<%@ page language="java" import="java.util.*,edu.fzu.costlog.domain.*"
	pageEncoding="utf-8"%>
<%
	List<CostCategory> categorys = (List<CostCategory>) request
			.getAttribute("categorys");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>新增消费记录</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

		<style>
body {
	padding: 10px;
}

#cost_desc input {width =155px;height =50px;
	
}
</style>
	</head>

	<body>
		<h3>
			新增消费记录
		</h3>
		<form action="costLogMgr?act=save" method="post">
			<div>
				<span>消费金额:</span>
				<input type="text" name="logamount" />
			</div>
			<br>
			<div>
				<span>消费类型:</span>
				<select name="costtype">
					<option value="">
						==请选择==
					</option>
					<%
						for (CostCategory category : categorys) {
					%>
					<option value="<%=category.getCategoryId()%>">
						<%=category.getCategoryName()%>
					</option>
					<%
						}
					%>
				</select>
			</div>
			<br />
			<div id="cost_desc">
				<span>消费描述:</span>
				<input type="text" name="logdesc" />
			</div>
			<br>
			<div>
				<input type="submit" value=" 保 存 " />
			</div>
		</form>
	</body>
</html>
